﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using OhioState.Graphics;

namespace OhioState.Controls
{
    public partial class NewDepthBufferControl : UserControl
    {
        public NewDepthBufferControl()
        {
            InitializeComponent();
        }

        public IDepthBuffer CreateDepthBuffer()
        {
            DepthBufferProxy depthBuffer = new DepthBufferProxy(nameControl.Text, (int)widthControl.Value,
                (int)heightControl.Value, stencilSupportButton.Checked);
            return depthBuffer;
        }
    }
}
